package com.longqin.wechat.entity;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonInclude;

/**accesstoken实体类
 * @author longqin
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class WxAccessToken  implements Serializable{
	private static final long serialVersionUID = 1L;
	
	private String access_token;
	private String openid;
	private String refresh_token;
	private long  expires_in;
	
	private Integer errcode;//微信错误码，-1为自定义错误
	
	private String errmsg;//微信错误信息
	
	public WxAccessToken() {
		super();
	}
	
	public int getErrcode() {
		return errcode;
	}

	public void setErrcode(int errcode) {
		this.errcode = errcode;
	}

	public String getErrmsg() {
		return errmsg;
	}

	public void setErrmsg(String errmsg) {
		this.errmsg = errmsg;
	}
	
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public String getRefresh_token() {
		return refresh_token;
	}

	public void setRefresh_token(String refresh_token) {
		this.refresh_token = refresh_token;
	}

	public String getAccess_token() {
		return access_token;
	}
	
	public void setAccess_token(String access_token) {
		this.access_token = access_token;
	}
	
	public long getExpires_in() {
		return expires_in;
	}
	
	public void setExpires_in(long expires_in) {
		this.expires_in = expires_in;
	}

}

